package com.fadis.protocol;

public class ErrorString extends BaseRespProtocol {

    private String str;

    public ErrorString(String str) {
        this.str = str;
    }

    public String getStr() {
        return str;
    }

    @Override
    public String encode() {
        String ss = "-{s}\r\n";
        ss = ss.replace("{s}", str == null ? "" : str);
        return ss;
    }
}
